<%@ page import="finalshu.FinalShu" %>
<%@ page contentType="text/html; charset=utf-8" language="java" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>登录界面</title>
    <script src="https://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js"></script>
    <script src="./work/js/Enter.js"></script>
    <link rel="stylesheet" href="<%=request.getContextPath()%>/work/css/Enter.css">
</head>
<body>
<div class ="bodys">
    <h1>Pillow Talk</h1>
    <form id="enterwindow" action="/loginSrevlet" method="post">
        <p class="frist">账号：<input type="text" name="username" value=""  size="14vw"></p>
        <p class="frist">密码：<input type="password" name="password" value="" size="14vw" ></p>
        <br>
        <p class="Enter" id="Enter"><input type="submit" class="Enter" value="登录"  id="login"></p>
<%--        未登录从其他页面跳转回来的判定弹窗--%>
        <%
            String longinInfo =request.getAttribute(FinalShu.FINAL_INFO) ==null?null: request.getAttribute(FinalShu.FINAL_INFO).toString();
            if(null != longinInfo && longinInfo.length()>0){
                %>
                <script> alert("未登录")</script>
                <%
                }
        %>
    </form>
    <div class="EnterLogin">
        <a href="" target="_blank" >立即注册&nbsp;&nbsp;</a>
        <a href="" target="_blank" >忘记密码</a>
        <br>
    </div>
</div>
</body>
</html>
